<?php
/**
* Print a string AST value. This is the default and is used when you do not specify a template name.
*
* @usage `@\ast(class.\Tlf\Scrawl.docblock.description)`
* @output The string value pointed to by the AST key.
*
* @param $args[0] the key pointing to the ast, must begin with `class.ClassName`
* @param $args[1] string or array ... whatever the key pointed at
* @param $args[2] is the AstVerb class instance
*/
$key = $args[0];
if (is_array($args[1])){
// $this->warn("Cannot show ast $key.", "it is an array");
echo "@ast($key) is an array";
} else {
echo $args[1];
}